<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
</head>

<body>
    <script>
            ///ES6允许按照一定模式从数组和对象中提取值，对变量进行赋值。
            //1.数组的解构赋值
            // const guigu = ["geni","weizhuang","tianming"];
            // let [name1,name2,name3]=guigu;
            // console.log(name1);
            //2.对象的解构赋值
            // const tian = {
            //     name:"tianming",
            //     age:18,
            //     like:function(){
            //         console.log("天明喜欢吃烧鸡！")
            //     }
            // };
            // let {name,age,like} = tian;
            // console.log(like());

    </script>
</body>

</html>